<!DOCTYPE html>
<?php
if (!isset($_GET['show'])) {
    $_GET['show'] = 'main';
}
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Sláger Kazincbarcika</title>
        <link rel="stylesheet" type="text/css" href="style.css">
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
        <script type="text/javascript" src="scripts.js"></script>
    </head>
    <body>
        <div id="container">
            <ul>
                <li><a href="index.php?show=main">Kezdőlap</a></li>&nbsp;|
                &nbsp;<li><a href="index.php?show=players">Tagok</a></li>&nbsp;|
                &nbsp;<li><a href="index.php?show=hirek">Hírek</a></li>&nbsp;|
                &nbsp;<li><a href="index.php?show=matches">Meccsek</a></li>
            </ul>
            <div id="content">
                <?php
                if (!isset($_GET['show'])) {
                    $_GET['show'] = 'main';
                }
                switch ($_GET['show']) {
                    case 'main':
                        include 'welcome.php';
                        break;
                    case 'players':
                        include 'players.php';
                        break;
                    case 'matches':
                        include 'matches.php';
                        break;
                    case 'hirek':
                        include 'hirek.php';
                        break;
                }
                ?>
            </div>
        </div>
    </body>
</html>
